<template>
  <div id="homeHeader" class="homeHeader">
    <div class="centered">
      <img src="../assets/font/学校.png" alt="" height="60px" width="60px">
      <div class="mes">
        {{ title }} ||
        管理员信息:{{ name }} ||
        管理员ID:{{ adminid }}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  data() {
    return {
      title: '成电教务网',
      name: '',
      adminid: ''
    };
  },
  mounted() {
    this.name = localStorage.getItem('name');
    this.adminid = localStorage.getItem('adminId');
  }
};
</script>

<style scoped>
.homeHeader {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  height: 60px;
}

.centered {
  display: flex;
  align-items: center;
}

.mes {
  margin-left: 10px; /* 添加适当的间距 */
}
</style>